<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:73:"D:\important\netwws-cms\public/../application/admin\view\jump\success.tpl";i:1507614517;s:76:"D:\important\netwws-cms\public/../application/admin\view\extends\extend.html";i:1507614517;}*/ ?>
<!DOCTYPE html>
<html>
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <!--bootstarp-->
    <link href="__admin__/css/bootstrap.min.css" rel="stylesheet">
    <!-- 图标-->
    <link href="__admin__/css/font-awesome.min.css" rel="stylesheet">
    <!-- animate -->
    <link href="__admin__/css/animate.min.css" rel="stylesheet">
    <!--自定义css-->
    <link href="__admin__/css/style.min.css" rel="stylesheet">
    <!--子页面加载css-->
</head>
<body class="gray-bg">
<!--子页面内容-->
<!-- jquery-->
<script src="__admin__/js/jquery.min.js"></script>
<!-- bootstarp-->
<script src="__admin__/js/bootstrap.min.js"></script>

    <!-- sweetalert js -->
    <script src="__admin__/js/plugins/sweetalert/sweetalert.min.js"></script>
    <script>
        $(document).ready(function () {
            var url = '<?php echo $url; ?>';
            var message = '<?php echo strip_tags($msg); ?>';
            var time = '<?php echo $wait; ?>';
            var jump = function () {
                (url === null || url.length === 0 || url === 'javascript:history.back(-1);')?history.go(-1):$(location).attr('href', url);
            };
            swal({
                title: message,
                text: '页面自动跳转,等待时间: '+(time)+' 秒!',
                icon: "success",
                dangerMode: true,
            }).then(function (boolean){
                jump();
            });
            (function(){
                var interval = setInterval(function(){
                    time -= 1;
                    var message = '页面自动跳转,等待时间: '+(time)+' 秒!';
                    $('.swal-text').html(message);
                    if(time <= 0) {
                        jump();
                        clearInterval(interval);
                    };
                }, 1000);
            })();
        });
    </script>

</body>
</html>
